import datetime
from peewee import CharField, DateTimeField, Model, SQL

class BaseModel(Model):
    created_at = DateTimeField(default=datetime.datetime.now())
    updated_at = DateTimeField(default=datetime.datetime.now())
    class Meta:
        pass
        # 需要引入全局的代理对象
        # database = databases